package com.spongebob.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @RequestMapping({"/", "/login"})
    public String login() {
        return "login";
    }


    @RequestMapping("/index")
    public String index() {
        return "index";
    }

    @RequestMapping("/chat")
    public String chat() {
        return "chat";
    }

    @RequestMapping("/register")
    public String register() {
        return "register";
    }

    @RequestMapping("/email")
    public String charts() {
        return "email";
    }

    @RequestMapping("/app-todo")
    public String forms() {
        return "app-todo";
    }

    @RequestMapping("/tables")
    public String tables() {
        return "tables";
    }

    @RequestMapping("/404")
    public String f() {
        return "404";
    }

    @RequestMapping("/500")
    public String w() {
        return "500";
    }
}





